package com.example.upload.service.file;

import com.example.upload.entity.file.File;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * (File)表服务接口
 *
 * @author makejava
 * @since 2024-05-28 11:28:09
 */
public interface FileService {


    /**
     * 新增数据
     *
     * @param file 实例对象
     * @return 实例对象
     */
    String insert(MultipartFile file);


    void downLoadFile(String filePath, HttpServletResponse response);

    PageInfo<File> getMyFile(Integer page, Integer pageSize,String keyWord);
}
